MiniKotlinBaseVisitor

open class MiniKotlinBaseVisitor<T> : AbstractParseTreeVisitor<T> , MiniKotlinVisitor<T>

This class provides an empty implementation of MiniKotlinVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Parameters

<T>

The return type of the visit operation. Use Void for operations with no return type.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun visit(tree: ParseTree): T
Link copied to clipboard
Visit a parse tree produced by the AddSubExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by the AndExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#argumentList.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#block.
Link copied to clipboard
Visit a parse tree produced by the BoolLiteral} labeled alternative in MiniKotlinParser#primary.
Link copied to clipboard
open fun visitChildren(node: RuleNode): T
Link copied to clipboard
Visit a parse tree produced by the ComparisonExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by the EqualityExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
open fun visitErrorNode(node: ErrorNode): T
Link copied to clipboard
Visit a parse tree produced by the FunctionCallExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#functionDeclaration.
Link copied to clipboard
Visit a parse tree produced by the IdentifierExpr} labeled alternative in MiniKotlinParser#primary.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#ifStatement.
Link copied to clipboard
Visit a parse tree produced by the IntLiteral} labeled alternative in MiniKotlinParser#primary.
Link copied to clipboard
Visit a parse tree produced by the MulDivExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by the NotExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by the OrExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#parameter.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#parameterList.
Link copied to clipboard
Visit a parse tree produced by the ParenExpr} labeled alternative in MiniKotlinParser#primary.
Link copied to clipboard
Visit a parse tree produced by the PrimaryExpr} labeled alternative in MiniKotlinParser#expression.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#program.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#returnStatement.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#statement.
Link copied to clipboard
Visit a parse tree produced by the StringLiteral} labeled alternative in MiniKotlinParser#primary.
Link copied to clipboard
open fun visitTerminal(node: TerminalNode): T
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#type.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#variableAssignment.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#variableDeclaration.
Link copied to clipboard
Visit a parse tree produced by MiniKotlinParser#whileStatement.